﻿using System;

namespace Dragon.Library.Utility
{
    public static class RandomUtility
    {
        /// <summary>
        /// 自动生成随机数
        /// </summary>
        /// <param name="maxLenght">最大长度（建议长度在10或以上）</param>
        /// <returns></returns>
        public static string GetNumber(int maxLenght)
        {
            return Guid.NewGuid().ToString().Replace("-", "").Substring(0, maxLenght);
        }
    }
}
